﻿using System.Threading;
using BusinessLogic.Managers;
using Common.Core;

namespace Server.DocumentProcessor
{
	internal class ProcessingService
	{
		public void Start()
		{
			int heartBeat = Configuration.ProcessingHeartBeat * 1000;
			while (true)
			{
				Thread.Sleep(heartBeat);
				ProcessingManager.ProcessReceivedEnvelopes();
			}
		}
	}
}